package edu.sctu.renpingan.day20150512.text2;

/**
 * Created by user18 on 2015/5/12.
 */
public class TextTwo extends TextOne {

public int k;

    public TextTwo(TextThere[] textTheres) {
        super(textTheres);
    }


    @Override
    public void getSysyTem() {

        for(int i = 0;i<10;i++){

            if (textTheres[i].getGrade() > 60 ) {
                System.out.println(textTheres[i].getName()+"  "+textTheres[i].getGrade()+"  "+textTheres[i].getNumber()+"  "+textTheres[i].getAge()+"  "+textTheres[i].getAdress());
           k++;
            }
        }
        System.out.println("满足条件的人数"+":"+k);
    }
}
